home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Fonts.a < prev    next >
Encoding:
Text File  |  1998-02-12  |  15.8 KB  |  538 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Fonts.a
  3. ;
  4. ;    Contains:    Font Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    MacOS 8
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__FONTS__') = 'UNDEFINED' THEN
  19. __FONTS__ SET 1
  20.  
  21.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  22.     include 'MacTypes.a'
  23.     ENDIF
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27.  
  28.  
  29. systemFont                        EQU        0
  30. applFont                        EQU        1
  31. ;  kPlatformDefaultGuiFontID is used in QuickTime 3.0 
  32.     IF TARGET_OS_MAC THEN
  33.  
  34. kPlatformDefaultGuiFontID        EQU        1
  35.     ELSE
  36.  
  37. kPlatformDefaultGuiFontID        EQU        -1
  38.     ENDIF    ; TARGET_OS_MAC
  39. ;    The following font constants are deprecated.  
  40. ;    Please use GetFNum() to look up the font ID by name.
  41. ;
  42.  
  43.  
  44. kFontIDNewYork                    EQU        2
  45. kFontIDGeneva                    EQU        3
  46. kFontIDMonaco                    EQU        4
  47. kFontIDVenice                    EQU        5
  48. kFontIDLondon                    EQU        6
  49. kFontIDAthens                    EQU        7
  50. kFontIDSanFrancisco                EQU        8
  51. kFontIDToronto                    EQU        9
  52. kFontIDCairo                    EQU        11
  53. kFontIDLosAngeles                EQU        12
  54. kFontIDTimes                    EQU        20
  55. kFontIDHelvetica                EQU        21
  56. kFontIDCourier                    EQU        22
  57. kFontIDSymbol                    EQU        23
  58. kFontIDMobile                    EQU        24
  59.     IF OLDROUTINENAMES THEN
  60.  
  61. newYork                            EQU        2
  62. geneva                            EQU        3
  63. monaco                            EQU        4
  64. venice                            EQU        5
  65. london                            EQU        6
  66. athens                            EQU        7
  67. sanFran                            EQU        8
  68. toronto                            EQU        9
  69. cairo                            EQU        11
  70. losAngeles                        EQU        12
  71. times                            EQU        20
  72. helvetica                        EQU        21
  73. courier                            EQU        22
  74. symbol                            EQU        23
  75. mobile                            EQU        24
  76.     ENDIF    ; OLDROUTINENAMES
  77.  
  78. commandMark                        EQU        17
  79. checkMark                        EQU        18
  80. diamondMark                        EQU        19
  81. appleMark                        EQU        20
  82.  
  83. propFont                        EQU        36864
  84. prpFntH                            EQU        36865
  85. prpFntW                            EQU        36866
  86. prpFntHW                        EQU        36867
  87. fixedFont                        EQU        45056
  88. fxdFntH                            EQU        45057
  89. fxdFntW                            EQU        45058
  90. fxdFntHW                        EQU        45059
  91. fontWid                            EQU        44208
  92. FMInput                    RECORD 0
  93. family                     ds.w    1                ; offset: $0 (0)
  94. size                     ds.w    1                ; offset: $2 (2)
  95. face                     ds.b    1                ; offset: $4 (4)
  96. needBits                 ds.b    1                ; offset: $5 (5)
  97. device                     ds.w    1                ; offset: $6 (6)
  98. numer                     ds        Point            ; offset: $8 (8)
  99. denom                     ds        Point            ; offset: $C (12)
  100. sizeof                     EQU *                    ; size:   $10 (16)
  101.                         ENDR
  102. FMOutput                RECORD 0
  103. errNum                     ds.w    1                ; offset: $0 (0)
  104. fontHandle                 ds.l    1                ; offset: $2 (2)        ;  the previous "privateFontResult" was a mistake! 
  105. boldPixels                 ds.b    1                ; offset: $6 (6)
  106. italicPixels             ds.b    1                ; offset: $7 (7)
  107. ulOffset                 ds.b    1                ; offset: $8 (8)
  108. ulShadow                 ds.b    1                ; offset: $9 (9)
  109. ulThick                     ds.b    1                ; offset: $A (10)
  110. shadowPixels             ds.b    1                ; offset: $B (11)
  111. extra                     ds.b    1                ; offset: $C (12)
  112. ascent                     ds.b    1                ; offset: $D (13)
  113. descent                     ds.b    1                ; offset: $E (14)
  114. widMax                     ds.b    1                ; offset: $F (15)
  115. leading                     ds.b    1                ; offset: $10 (16)
  116. curStyle                 ds.b    1                ; offset: $11 (17)
  117. numer                     ds        Point            ; offset: $12 (18)
  118. denom                     ds        Point            ; offset: $16 (22)
  119. sizeof                     EQU *                    ; size:   $1A (26)
  120.                         ENDR
  121. ; typedef struct FMOutput *                FMOutPtr
  122.  
  123. ; typedef struct FMOutput *                FMOutputPtr
  124.  
  125. FontRec                    RECORD 0
  126. fontType                 ds.w    1                ; offset: $0 (0)        ; font type
  127. firstChar                 ds.w    1                ; offset: $2 (2)        ; ASCII code of first character
  128. lastChar                 ds.w    1                ; offset: $4 (4)        ; ASCII code of last character
  129. widMax                     ds.w    1                ; offset: $6 (6)        ; maximum character width
  130. kernMax                     ds.w    1                ; offset: $8 (8)        ; negative of maximum character kern
  131. nDescent                 ds.w    1                ; offset: $A (10)        ; negative of descent
  132. fRectWidth                 ds.w    1                ; offset: $C (12)        ; width of font rectangle
  133. fRectHeight                 ds.w    1                ; offset: $E (14)        ; height of font rectangle
  134. owTLoc                     ds.w    1                ; offset: $10 (16)        ; offset to offset/width table
  135. ascent                     ds.w    1                ; offset: $12 (18)        ; ascent
  136. descent                     ds.w    1                ; offset: $14 (20)        ; descent
  137. leading                     ds.w    1                ; offset: $16 (22)        ; leading
  138. rowWords                 ds.w    1                ; offset: $18 (24)        ; row width of bit image / 2 
  139. sizeof                     EQU *                    ; size:   $1A (26)
  140.                         ENDR
  141. ; typedef struct FontRec *                FontRecPtr
  142.  
  143. ; typedef FontRecPtr *                    FontRecHdl
  144.  
  145. FMetricRec                RECORD 0
  146. ascent                     ds.l    1                ; offset: $0 (0)        ; base line to top
  147. descent                     ds.l    1                ; offset: $4 (4)        ; base line to bottom
  148. leading                     ds.l    1                ; offset: $8 (8)        ; leading between lines
  149. widMax                     ds.l    1                ; offset: $C (12)        ; maximum character width
  150. wTabHandle                 ds.l    1                ; offset: $10 (16)        ; handle to font width table
  151. sizeof                     EQU *                    ; size:   $14 (20)
  152.                         ENDR
  153.  
  154. ;   typedef struct FMetricRec FMetricRec, *FMetricRecPtr;
  155. ;   typedef FMetricRecPtr *FMetricRecHandle;
  156.  
  157.  
  158. ; typedef struct FMetricRec *            FMetricRecPtr
  159.  
  160. ; typedef FMetricRecPtr *                FMetricRecHandle
  161.  
  162. WidEntry                RECORD 0
  163. widStyle                 ds.w    1                ; offset: $0 (0)        ; style entry applies to
  164. sizeof                     EQU *                    ; size:   $2 (2)
  165.                         ENDR
  166. WidTable                RECORD 0
  167. numWidths                 ds.w    1                ; offset: $0 (0)        ; number of entries - 1
  168. sizeof                     EQU *                    ; size:   $2 (2)
  169.                         ENDR
  170. AsscEntry                RECORD 0
  171. fontSize                 ds.w    1                ; offset: $0 (0)
  172. fontStyle                 ds.w    1                ; offset: $2 (2)
  173. fontID                     ds.w    1                ; offset: $4 (4)        ; font resource ID
  174. sizeof                     EQU *                    ; size:   $6 (6)
  175.                         ENDR
  176. FontAssoc                RECORD 0
  177. numAssoc                 ds.w    1                ; offset: $0 (0)        ; number of entries - 1
  178. sizeof                     EQU *                    ; size:   $2 (2)
  179.                         ENDR
  180. StyleTable                RECORD 0
  181. fontClass                 ds.w    1                ; offset: $0 (0)
  182. offset                     ds.l    1                ; offset: $2 (2)
  183. reserved                 ds.l    1                ; offset: $6 (6)
  184. indexes                     ds.b    48                ; offset: $A (10)
  185. sizeof                     EQU *                    ; size:   $3A (58)
  186.                         ENDR
  187. NameTable                RECORD 0
  188. stringCount                 ds.w    1                ; offset: $0 (0)
  189. baseFontName             ds        Str255            ; offset: $2 (2)
  190. sizeof                     EQU *                    ; size:   $102 (258)
  191.                         ENDR
  192. KernPair                RECORD 0
  193. kernFirst                 ds.b    1                ; offset: $0 (0)        ; 1st character of kerned pair
  194. kernSecond                 ds.b    1                ; offset: $1 (1)        ; 2nd character of kerned pair
  195. kernWidth                 ds.w    1                ; offset: $2 (2)        ; kerning in 1pt fixed format
  196. sizeof                     EQU *                    ; size:   $4 (4)
  197.                         ENDR
  198. KernEntry                RECORD 0
  199. kernStyle                 ds.w    1                ; offset: $0 (0)        ; style the entry applies to
  200. kernLength                 ds.w    1                ; offset: $2 (2)        ; length of this entry
  201. sizeof                     EQU *                    ; size:   $4 (4)
  202.                         ENDR
  203. KernTable                RECORD 0
  204. numKerns                 ds.w    1                ; offset: $0 (0)        ; number of kerning entries
  205. sizeof                     EQU *                    ; size:   $2 (2)
  206.                         ENDR
  207. WidthTable                RECORD 0
  208. tabData                     ds.l    256                ; offset: $0 (0)        ; character widths
  209. tabFont                     ds.l    1                ; offset: $400 (1024)    ; font record used to build table - the previous FontResult was a mistake!
  210. sExtra                     ds.l    1                ; offset: $404 (1028)    ; space extra used for table
  211. style                     ds.l    1                ; offset: $408 (1032)    ; extra due to style
  212. fID                         ds.w    1                ; offset: $40C (1036)    ; font family ID
  213. fSize                     ds.w    1                ; offset: $40E (1038)    ; font size request
  214. face                     ds.w    1                ; offset: $410 (1040)    ; style (face) request
  215. device                     ds.w    1                ; offset: $412 (1042)    ; device requested
  216. inNumer                     ds        Point            ; offset: $414 (1044)    ; scale factors requested
  217. inDenom                     ds        Point            ; offset: $418 (1048)    ; scale factors requested
  218. aFID                     ds.w    1                ; offset: $41C (1052)    ; actual font family ID for table
  219. fHand                     ds.l    1                ; offset: $41E (1054)    ; family record used to build up table
  220. usedFam                     ds.b    1                ; offset: $422 (1058)    ; used fixed point family widths
  221. aFace                     ds.b    1                ; offset: $423 (1059)    ; actual face produced
  222. vOutput                     ds.w    1                ; offset: $424 (1060)    ; vertical scale output value
  223. hOutput                     ds.w    1                ; offset: $426 (1062)    ; horizontal scale output value
  224. vFactor                     ds.w    1                ; offset: $428 (1064)    ; vertical scale output value
  225. hFactor                     ds.w    1                ; offset: $42A (1066)    ; horizontal scale output value
  226. aSize                     ds.w    1                ; offset: $42C (1068)    ; actual size of actual font used
  227. tabSize                     ds.w    1                ; offset: $42E (1070)    ; total size of table
  228. sizeof                     EQU *                    ; size:   $430 (1072)
  229.                         ENDR
  230. ; typedef struct WidthTable *            WidthTablePtr
  231.  
  232. ; typedef WidthTablePtr *                WidthTableHdl
  233.  
  234.  
  235. FamRec                    RECORD 0
  236. ffFlags                     ds.w    1                ; offset: $0 (0)        ; flags for family
  237. ffFamID                     ds.w    1                ; offset: $2 (2)        ; family ID number
  238. ffFirstChar                 ds.w    1                ; offset: $4 (4)        ; ASCII code of 1st character
  239. ffLastChar                 ds.w    1                ; offset: $6 (6)        ; ASCII code of last character
  240. ffAscent                 ds.w    1                ; offset: $8 (8)        ; maximum ascent for 1pt font
  241. ffDescent                 ds.w    1                ; offset: $A (10)        ; maximum descent for 1pt font
  242. ffLeading                 ds.w    1                ; offset: $C (12)        ; maximum leading for 1pt font
  243. ffWidMax                 ds.w    1                ; offset: $E (14)        ; maximum widMax for 1pt font
  244. ffWTabOff                 ds.l    1                ; offset: $10 (16)        ; offset to width table
  245. ffKernOff                 ds.l    1                ; offset: $14 (20)        ; offset to kerning table
  246. ffStylOff                 ds.l    1                ; offset: $18 (24)        ; offset to style mapping table
  247. ffProperty                 ds.w    9                ; offset: $1C (28)        ; style property info
  248. ffIntl                     ds.w    2                ; offset: $2E (46)        ; for international use
  249. ffVersion                 ds.w    1                ; offset: $32 (50)        ; version number
  250. sizeof                     EQU *                    ; size:   $34 (52)
  251.                         ENDR
  252. ; typedef SInt16                         FontPointSize
  253.  
  254. ; typedef SInt16                         FontFamilyID
  255.  
  256. ;
  257. ; pascal void InitFonts(void )
  258. ;
  259.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  260.         _InitFonts:    OPWORD    $A8FE
  261.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  262.         IMPORT_CFM_FUNCTION InitFonts
  263.     ENDIF
  264.  
  265. ;
  266. ; pascal void GetFontName(short familyID, Str255 name)
  267. ;
  268.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  269.         _GetFontName:    OPWORD    $A8FF
  270.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  271.         IMPORT_CFM_FUNCTION GetFontName
  272.     ENDIF
  273.  
  274. ;
  275. ; pascal void GetFNum(ConstStr255Param name, short *familyID)
  276. ;
  277.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  278.         _GetFNum:    OPWORD    $A900
  279.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  280.         IMPORT_CFM_FUNCTION GetFNum
  281.     ENDIF
  282.  
  283. ;
  284. ; pascal Boolean RealFont(short fontNum, short size)
  285. ;
  286.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  287.         _RealFont:    OPWORD    $A902
  288.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  289.         IMPORT_CFM_FUNCTION RealFont
  290.     ENDIF
  291.  
  292. ;
  293. ; pascal void SetFontLock(Boolean lockFlag)
  294. ;
  295.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  296.         _SetFontLock:    OPWORD    $A903
  297.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  298.         IMPORT_CFM_FUNCTION SetFontLock
  299.     ENDIF
  300.  
  301. ;
  302. ; pascal FMOutPtr FMSwapFont(const FMInput *inRec)
  303. ;
  304.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  305.         _FMSwapFont:    OPWORD    $A901
  306.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  307.         IMPORT_CFM_FUNCTION FMSwapFont
  308.     ENDIF
  309.  
  310. ;
  311. ; pascal void SetFScaleDisable(Boolean fscaleDisable)
  312. ;
  313.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  314.         _SetFScaleDisable:    OPWORD    $A834
  315.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  316.         IMPORT_CFM_FUNCTION SetFScaleDisable
  317.     ENDIF
  318.  
  319. ;
  320. ; pascal void FontMetrics(FMetricRecPtr theMetrics)
  321. ;
  322.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  323.         _FontMetrics:    OPWORD    $A835
  324.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  325.         IMPORT_CFM_FUNCTION FontMetrics
  326.     ENDIF
  327.  
  328. ;
  329. ; pascal void SetFractEnable(Boolean fractEnable)
  330. ;
  331.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  332.         _SetFractEnable:    OPWORD    $A814
  333.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  334.         IMPORT_CFM_FUNCTION SetFractEnable
  335.     ENDIF
  336.  
  337. ;
  338. ; pascal short GetDefFontSize(void )
  339. ;
  340.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  341.         Macro
  342.         _GetDefFontSize
  343.             dc.w                $3EB8
  344.             dc.w                $0BA8
  345.             dc.w                $6604
  346.             dc.w                $3EBC
  347.             dc.w                $000C
  348.         EndM
  349.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  350.         IMPORT_CFM_FUNCTION GetDefFontSize
  351.     ENDIF
  352.  
  353. ;
  354. ; pascal Boolean IsOutline(Point numer, Point denom)
  355. ;
  356.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  357.         Macro
  358.         _IsOutline
  359.             moveq               #0,D0
  360.             dc.w                $A854
  361.         EndM
  362.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  363.         IMPORT_CFM_FUNCTION IsOutline
  364.     ENDIF
  365.  
  366. ;
  367. ; pascal void SetOutlinePreferred(Boolean outlinePreferred)
  368. ;
  369.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  370.         Macro
  371.         _SetOutlinePreferred
  372.             moveq               #1,D0
  373.             dc.w                $A854
  374.         EndM
  375.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  376.         IMPORT_CFM_FUNCTION SetOutlinePreferred
  377.     ENDIF
  378.  
  379. ;
  380. ; pascal Boolean GetOutlinePreferred(void )
  381. ;
  382.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  383.         Macro
  384.         _GetOutlinePreferred
  385.             moveq               #9,D0
  386.             dc.w                $A854
  387.         EndM
  388.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  389.         IMPORT_CFM_FUNCTION GetOutlinePreferred
  390.     ENDIF
  391.  
  392. ;
  393. ; pascal OSErr OutlineMetrics(short byteCount, const void *textPtr, Point numer, Point denom, short *yMax, short *yMin, FixedPtr awArray, FixedPtr lsbArray, RectPtr boundsArray)
  394. ;
  395.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  396.         Macro
  397.         _OutlineMetrics
  398.             moveq               #8,D0
  399.             dc.w                $A854
  400.         EndM
  401.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  402.         IMPORT_CFM_FUNCTION OutlineMetrics
  403.     ENDIF
  404.  
  405. ;
  406. ; pascal void SetPreserveGlyph(Boolean preserveGlyph)
  407. ;
  408.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  409.         Macro
  410.         _SetPreserveGlyph
  411.             moveq               #10,D0
  412.             dc.w                $A854
  413.         EndM
  414.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  415.         IMPORT_CFM_FUNCTION SetPreserveGlyph
  416.     ENDIF
  417.  
  418. ;
  419. ; pascal Boolean GetPreserveGlyph(void )
  420. ;
  421.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  422.         Macro
  423.         _GetPreserveGlyph
  424.             moveq               #11,D0
  425.             dc.w                $A854
  426.         EndM
  427.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  428.         IMPORT_CFM_FUNCTION GetPreserveGlyph
  429.     ENDIF
  430.  
  431. ;
  432. ; pascal OSErr FlushFonts(void )
  433. ;
  434.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  435.         Macro
  436.         _FlushFonts
  437.             moveq               #12,D0
  438.             dc.w                $A854
  439.         EndM
  440.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  441.         IMPORT_CFM_FUNCTION FlushFonts
  442.     ENDIF
  443.  
  444. ;
  445. ; pascal short GetSysFont(void)
  446. ;
  447.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  448.         Macro
  449.         _GetSysFont           &dest=(sp)
  450.             move.w            $0BA6,&dest
  451.         EndM
  452.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  453.         IMPORT_CFM_FUNCTION GetSysFont
  454.     ENDIF
  455.  
  456. ;
  457. ; pascal short GetAppFont(void)
  458. ;
  459.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  460.         Macro
  461.         _GetAppFont           &dest=(sp)
  462.             move.w            $0984,&dest
  463.         EndM
  464.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  465.         IMPORT_CFM_FUNCTION GetAppFont
  466.     ENDIF
  467.  
  468.  
  469. ;
  470. ; pascal void AntiTextSetApplicationAware(Boolean aware)
  471. ;
  472.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  473.         Macro
  474.         _AntiTextSetApplicationAware
  475.             moveq               #36,D0
  476.             dc.w                $A854
  477.         EndM
  478.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  479.         IMPORT_CFM_FUNCTION AntiTextSetApplicationAware
  480.     ENDIF
  481.  
  482. ;
  483. ; pascal Boolean AntiTextGetApplicationAware(void )
  484. ;
  485.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  486.         Macro
  487.         _AntiTextGetApplicationAware
  488.             moveq               #37,D0
  489.             dc.w                $A854
  490.         EndM
  491.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  492.         IMPORT_CFM_FUNCTION AntiTextGetApplicationAware
  493.     ENDIF
  494.  
  495. ;
  496. ; pascal void AntiTextSetEnabled(Boolean enabled)
  497. ;
  498.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  499.         Macro
  500.         _AntiTextSetEnabled
  501.             moveq               #38,D0
  502.             dc.w                $A854
  503.         EndM
  504.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  505.         IMPORT_CFM_FUNCTION AntiTextSetEnabled
  506.     ENDIF
  507.  
  508. ;
  509. ; pascal Boolean AntiTextGetEnabled(void )
  510. ;
  511.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  512.         Macro
  513.         _AntiTextGetEnabled
  514.             moveq               #39,D0
  515.             dc.w                $A854
  516.         EndM
  517.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  518.         IMPORT_CFM_FUNCTION AntiTextGetEnabled
  519.     ENDIF
  520.  
  521. ;
  522. ; pascal Boolean AntiTextIsAntiAliased(Point numer, Point denom)
  523. ;
  524.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  525.         Macro
  526.         _AntiTextIsAntiAliased
  527.             moveq               #40,D0
  528.             dc.w                $A854
  529.         EndM
  530.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  531.         IMPORT_CFM_FUNCTION AntiTextIsAntiAliased
  532.     ENDIF
  533.  
  534.  
  535.     ENDIF ; __FONTS__ 
  536.  
  537.